<form id="info-form" method="post" enctype="multipart/form-data">
    <table>
        <input type="hidden" name="id" value="@if(!empty($info)) {{$info['id']}} @endif" />
        <tr>
            <td>品牌名称:</td>
            <td><input class="easyui-textbox" type="text" name="name" data-options="required:true" value="@if(!empty($info)){{$info['name']}}@endif"/></td>
        </tr>
        <tr>
            <td>首字母:</td>
            <td><input class="easyui-textbox" type="text" name="initial" data-options="required:true" value="@if(!empty($info)){{$info['initial']}}@endif"/></td>
        </tr>
        <tr>
            <td>图片:</td>
            <td>
                <input class="easyui-filebox" style="width:300px" data-options='onChange:change_photo' id="file_upload" name="pic"/>
                <div id="Imgdiv"><img id="Img" width="80"  height="80" src="@if(!empty($info)){{env('RESOURCE_URL').$info['pic']}}@endif"></div>
                {{--<input class="easyui-textbox" type="text" name="pic" data-options="required:true" value="@if(!empty($info)){{$info['pic']}}@endif"/>--}}
            </td>
        </tr>
        <tr>
            <td align="right">是否推荐:</td>
            <td><input type="text" name="isRecommend" @if(!empty($info) && $info['is_recommend']) checked @endif class="easyui-switchbutton" data-options="onText:'是',offText:'否'" /></td>
        </tr>
    </table>
</form>

